/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package handler;

import model.Robot;

/**
 *
 * @author minhtue001
 */
public class MoveHandler implements Handler {
    
    public void moveForward(int numberOfMove) {
        Robot.getInstance().moveForward(numberOfMove);
    }
    
    @Override
    public void handle(String command) {
        int numberOfMove = Integer.parseInt(command.substring(1));
        moveForward(numberOfMove);
    }
    
}
